Manages collections of email messages in a local storage file. It
provides methods to store, retrieve, replace, and delete messages,
search message headers, and maintain the storage file.
Reference
Library Information
| Class Name |
CMessageStore |
| File Name |
CSMSGV12.DLL |
| Version |
12.0.3041.1380 |
| LibID |
123A728A-D6CD-435F-A76D-0BA3C07DDFC1 |
| Import Library |
CSMSGV12.LIB |
| Dependencies |
None |
Overview
The CMessageStore class provides an interface for storing
and managing collections of email messages in a single local file.
Applications can use a message store to retain messages for later
access, search their headers, and retrieve individual messages for
processing. This provides a straightforward approach to local message
storage without requiring a database.
Message stores support read-only and read/write access, with
options for compression and exclusive access. Applications can add,
replace, and delete messages, or copy the contents of a store to
another file. Deleted messages become unavailable immediately, but
remain in the storage file until they are purged. Compression reduces
the size of the file at the cost of additional memory use and
processing time when opening and closing the store.
Messages can be located by matching header field values, such as
sender and recipient addresses or subject text. Searches support
complete or partial matches, optional case-sensitive comparisons, and
decoding of encoded header values. Individual messages can be used
with the CMailMessage class to examine or modify their
contents, manage attachments, or export them to separate files.
The library builds an in-memory index of messages and their headers
when a store is opened. Although there is no fixed limit on the number
of stored messages, available memory limits the practical size of a
store. Applications that manage very large message collections should
use a database. Existing UNIX mbox files are supported for backward
compatibility, but that format is not recommended for new message
stores.
Requirements
The SocketTools Library Edition is compatible with any
programming language that can call functions exported from a
standard Windows DLL. If you are using Visual Studio, the
minimum supported version is Visual Studio 2010 with Service
Pack 1 (SP1). The header files are compatible with modern
C/C++ compilers, and function declarations are provided for
several other languages. We recommend installing the latest
updates for your development tools and the Windows SDK.
SocketTools supports Windows 7 SP1, Windows Server 2008 R2 SP1,
and later desktop and server versions of Windows, with Windows 8.1
as the minimum supported version for Windows 8-based systems.
Both 32-bit and 64-bit Windows platforms are supported for
application development. Windows on ARM requires Windows 10
build 1709 or later. We recommend using a version of Windows
that is currently supported by Microsoft for application
development.
SocketTools provides 32-bit x86, 64-bit x64, and native ARM64
libraries. The x86 libraries maintain compatibility with legacy
development tools and can run under emulation on Windows on ARM.
Native ARM32 applications are not supported because Microsoft
discontinued support for 32-bit ARM applications in Windows.
For native ARM64 development, we recommend Visual Studio 2019 or
later. Some development tools, including recent versions of
Embarcadero Delphi, support Windows on ARM using the ARM64EC
architecture. ARM64EC applications can use x64 DLLs through emulation,
but cannot load native ARM64 DLLs. Developers targeting ARM64EC
should use the SocketTools x64 libraries rather than the native
ARM64 libraries.
Import libraries are provided in COFF format for x86, x64, and
ARM64 platforms. OMF libraries are also provided for x86, and ELF
libraries for x64, to support older Borland and Embarcadero
compilers. Visual Studio developers should use the standard COFF
libraries. Some programming languages can call exported DLL
functions directly without requiring an import library.
Distribution
When distributing an application that uses this library, we
recommend installing the SocketTools DLL in the same folder as
the application executable. This simplifies deployment and
avoids potential conflicts with other applications that use
different versions of the library. The DLL must be compatible
with the application's processor architecture (x86, x64, or
ARM64). If the library is installed in a shared system location,
the installer should manage it as a shared DLL to prevent other
applications from being affected when it is updated or removed.
SocketTools libraries are standard Windows DLLs, not ActiveX
components, and do not require COM registration.
SocketTools libraries have no external runtime dependencies
beyond the standard Windows system libraries. They do not
require the Microsoft Visual C++ Redistributable or any
additional third-party libraries to be installed. All required
components are either provided by Windows or statically linked
into the SocketTools DLLs, simplifying deployment and
eliminating the need to distribute additional runtime files.
|